package com.next

import grails.converters.JSON
import grails.gorm.transactions.Transactional
import groovy.json.JsonOutput
import org.springframework.security.access.annotation.Secured

@Secured(['permitAll'])
@Transactional(readOnly = true)
class PaymentController
{

	def paymentService

    @Secured(['permitAll'])
    @Transactional
    def changeActive(ProductItem productItem)
    {
        // 生成商户订单

        // 统一下单接口，获取 预支付交易会话标识
        def prepayId = paymentService.getPrepayId()



        // 获取 paySign，也可前台获取

        
    }
}
